// nbt_tag_list(file, name, type, len)
//  file        GMBinaryFile file handle
//  name        Name of the tag
//  type        Type of the tags in the list
//  len         Amount of entries in the list

// Writes the beginning of a list tag to the file.
// Used when saving schematic files, which are in the NBT (Named Binary Tag) format by Notch.

// By David "Davve" Norgren for GMschematic - www.stuffbydavid.com

var file, name, type, len;
file = argument0;
name = argument1;
type = argument2;
len = argument3;

external_call(global.dll_WriteByte, file, 9);
nbt_string_write(file, name);
external_call(global.dll_WriteByte, file, type);
external_call(global.dll_WriteInt, file, len);